package com.ai.bitcoin.interceptor;

import com.ai.bitcoin.common.trace.TraceUtil;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


public class TraceSpringMVCInterceptor extends HandlerInterceptorAdapter {

    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
        TraceUtil.initTrace();
        return true;
    }

}
